//
//  NewActionRootModelOfStarredChannels.m
//  TestApplication
//
//  Created by Hanlingyu on 16/09/03
//  Copyright (c) ltq. All rights reserved.
//

#import "NewActionRootModelOfStarredChannels.h"
#import "NewActionContent.h"

@implementation NewActionRootModelOfStarredChannels

- (void)setValue:(id)value forKey:(NSString *)key {
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"content"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            NewActionContent *newAction =[NewActionContent modelWithDic:dic];
            [array addObject:newAction];
        }
        _content = array;
    }
}


+ (NSDictionary *)objectClassInArray{
    return @{@"content" : [NewActionContent class]};
}

@end
